class API_YBYC{
  static async get_address(url,qs = {}) {
    return await global["vapp"].config.globalProperties.$axios_get(url ? url + "/ser/address?" :"/ser/address?", qs, false, false,100)
  }
  static async get_ping(url,qs = {}) {
    return await global["vapp"].config.globalProperties.$axios_get(url ? url + "/ser/ping?" :"/ser/ping?", qs, false, false,100)
  }
  //文件 目录操作
  static async get_disks(qs = {}) {
    return await global["vapp"].config.globalProperties.$axios_get("/ser/get_disks?", qs, false, true)
  }
  static async get_files(qs = {}) {
    return await global["vapp"].config.globalProperties.$axios_post("/ser/get_files?", qs, false, true)
  }
  static async get_tifs(qs={}){
    return await global["vapp"].config.globalProperties.$axios_get("/ser/get_tifs?", qs, false, false)
  }
  static async get_dir_array(qs = {}) {
    return await global["vapp"].config.globalProperties.$axios_get("/ser/get_dir_array?", qs, false, true)
  }
  static async task_get(qs = {}) {
    return await global["vapp"].config.globalProperties.$axios_get("/ser/task_get?", qs, false, true)
  }
  static async task_check(qs = {}) {
    return await global["vapp"].config.globalProperties.$axios_post("/ser/task_check?", qs, false, false)
  }
  static async task_update(qs = {}) {
    return await global["vapp"].config.globalProperties.$axios_post("/ser/task_update?", qs, false, true)
  }




  
  // static async mk_dir(qs = {}) {
  //   return await global["vapp"].config.globalProperties.$axios_post("/task/config/mk_dir?", qs, false, false)
  // }
  // static async check_dir(qs={}){
  //   return await global["vapp"].config.globalProperties.$axios_post("/task/config/check_dir?", qs, false, false)
  // }
  //获取set.ini
  static async get_set(qs = {}) {
    return await global["vapp"].config.globalProperties.$axios_get("/ser/get_set?", qs, false, true)
  }
  static async update_set(qs = {}) {
    return await global["vapp"].config.globalProperties.$axios_post("/ser/update_set?", qs, false, true)
  }
  //获取sensor
  static async get_sensor(qs = {}) {
    return await global["vapp"].config.globalProperties.$axios_get("/ser/get_sensor?", qs, false, true)
  }
  static async update_sensor(qs = {}) {
    return await global["vapp"].config.globalProperties.$axios_post("/ser/update_sensor?", qs, false, false)
  }
  static async update_tif_cfg(qs = {}) {
    return await global["vapp"].config.globalProperties.$axios_post("/ser/update_tif_cfg?", qs, false, true)
  }
  static async update_calibration(qs = {}) {
    return await global["vapp"].config.globalProperties.$axios_post("/ser/update_calibration?", qs, false, true)
  }
  static async update_calibration_NumberofAngles(qs = {}) {
    return await global["vapp"].config.globalProperties.$axios_post("/ser/update_calibration_NumberofAngles?", qs, false, true)
  }
  static async get_ddom_tif(qs = {}) {
    return await global["vapp"].config.globalProperties.$axios_post("/ser/get_ddom_tif?", qs, false, true)
  }

  
  //匹配选定内容
  static async run_match(qs = {}) {
    return await global["vapp"].config.globalProperties.$axios_post("/ser/run_match?", qs, false, false)
  }
  //外定标
  static async run_ext_calibration(qs = {}) {
    return await global["vapp"].config.globalProperties.$axios_post("/ser/run_ext_calibration?", qs, false, false)
  }
  //内定标
  static async run_int_calibration(qs = {}) {
    return await global["vapp"].config.globalProperties.$axios_post("/ser/run_int_calibration?", qs, false, false)
  }
  //外内迭代定标
  static async run_ext_int_calibration(qs = {}) {
    return await global["vapp"].config.globalProperties.$axios_post("/ser/run_ext_int_calibration?", qs, false, false)
  }
  //精度验证
  static async run_rms(qs = {}) {
    return await global["vapp"].config.globalProperties.$axios_post("/ser/run_rms?", qs, false, false)
  }
  static async get_tree_data(qs = {}) {
    return await global["vapp"].config.globalProperties.$axios_post("/ser/get_tree_data?", qs, false, true)
  }
  static async get_log(qs = {}) {
    return await global["vapp"].config.globalProperties.$axios_post("/ser/get_log?", qs, false, true)
  }
  static async get_match_point(qs = {}) {
    return await global["vapp"].config.globalProperties.$axios_post("/ser/get_match_point?", qs, false, true)
  }
  static async update_match_point(qs = {}) {
    return await global["vapp"].config.globalProperties.$axios_post("/ser/update_match_point?", qs, false, true)
  }
  static async get_static_img(url) {
    return await global["vapp"].config.globalProperties.$axios_get(url,{}, false, false)
  }
  
  
  
}
export function apis_set(){
  global["vapp"].config.globalProperties.$apis =API_YBYC
}